import request from './request'

export function getComments(params) {
  return request({
    url: '/comment/get/all',
    method: 'get',
    params: {
      commenterUserName: params.userName,
      content: params.content,
      startTime: params.startTime,
      endTime: params.endTime,
      offset: params.offset,
      size: params.size
    }
  })
}

export function getCommentById(commentId) {
  return request({
    url: '/comment/get/id',
    method: 'get',
    params: {
      commentId: commentId
    }
  })
}